Component({
    properties: {
        visible: {
            type: Boolean,
            value: !1,
            observer: function(i) {
                this.setData({
                    _visible: i
                });
            }
        },
        position: {
            type: String,
            value: "bottom"
        }
    },
    data: {
        _visible: !1
    },
    methods: {
        hide: function() {
            this.show(!1);
        },
        show: function() {
            var i = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
            this.setData({
                _visible: i
            }), this.triggerEvent("update:visible", {
                visible: i
            });
        }
    }
});